(function(t){var i=t;i._N2=i._N2||{_r:[],_d:[],r:function(){this._r.push(arguments)},d:function(){this._d.push(arguments)}};var s=t.document,n=s.documentElement,h,o,r=t.setTimeout,u=t.clearTimeout,a=i._N2,c=t.requestAnimationFrame,f=function(t,i=null,n=null,h=null){const o=s.createElement(t);return i&&("string"==typeof i?N(o,i):U(o,i)),n&&A(o,n),h&&O(o,h),o},l=function(t,i,s,n,h){const o=f(i,s,n,h);return t&&t.appendChild(o),o},d=function(t,i,s,n,h){const o=f(t,s,n,h);return o.innerHTML=i,o},v=function(t,i,s,n,h,o){const r=l(t,i,n,h,o);return r.innerHTML=s,r},p=function(t,i,s){return f("div",t,i,s)},m=function(t,i,s,n){return l(t,"div",i,s,n)},b=function(t,i,s,n){return d("div",t,i,s,n)},S=function(t,i,s,n,h){return v(t,"div",i,s,n,h)},w=function(t,i,s,n,h){const o=f("a",s,n,h);return x(o,"href",i),o.innerHTML=t,o},y=function(t,i,s,n,h,o){const r=l(t,"a",n,h,o);return x(r,"href",s),r.innerHTML=i,r},g=Object.assign,k=function(t,i){for(var s=Object(t),n=1;n=0;n--)s[n]===i&&s.splice(n,1)},vt=function(){return n.scrollTop},pt=function(t){n.scrollTop=t},mt=function(){return n.scrollLeft},bt=function(t){return t.getBoundingClientRect().width},St=function(t){return t.getBoundingClientRect().height},wt=function(t){return s.scrollingElement.scrollTop+t.getBoundingClientRect().top},yt=function(t){"complete"===s.readyState||"interactive"===s.readyState?t():Document&&Document.prototype&&Document.prototype.addEventListener&&Document.prototype.addEventListener!==s.addEventListener?Document.prototype.addEventListener.call(s,"DOMContentLoaded",t):s.addEventListener("DOMContentLoaded",t)},gt=function(t,i,s,n){if(Math.abs(t.scrollTop-i)<1)n&&n();else{s=Math.max(300,s||300);var h=t.scrollTop,o=i-h,r=performance.now(),u=function(i){var a=Math.min(1,(i-r)/s);a<.5?a*=2*a:a=(4-2*a)*a-1,t.scrollTop=h+a*o,a<1?requestAnimationFrame(u):n&&n()};u(r)}},kt=function(t,i,n){var h=s.createElementNS("http://www.w3.org/2000/svg",t);return i&&(xt(h,i),n&&n.appendChild(h)),h},Ct=function(t,i,s){t.setAttributeNS(null,i,s)},xt=function(t,i){for(var s in i)Ct(t,s,i[s])},At=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Pt=navigator.userAgent.indexOf("+http://www.google.com/bot.html")>-1?function(t){t()}:i.requestIdleCallback||function(t){return r(t,1)},It=i.cancelIdleCallback||function(t){u(t)};function Mt(t){var i=s.getElementById(t);if(i&&i.sheet){var n,h=i.sheet;for(n=h.cssRules.length-1;n>=0;n--)h.cssRules[n].selectorText&&h.cssRules[n].selectorText.includes("div#n2-ss-")&&h.deleteRule(n)}}yt((function(){h=s.body})),a.d("SmartSliderBackgrounds",(function(){function t(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.promise=new Promise(function(t){this.resolve=t}.bind(this)),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return t.prototype.preLoad=function(t){Promise.all(t).then(this.resolve)},t.prototype.getBackgroundImages=function(){for(var t=[],i=0;i.7*i,h=!0;"partly-visible"===t.mode?(n&&(s.bottom<0||s.top>=s.height)||!n&&(s.bottom-s.height<0||s.top-i+s.height>=0))&&(h=!1):"not-visible"===t.mode&&(h=s.top-i<0&&s.top+s.height>0),!1===h?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new t})),a.d("SmartSliderApi",(function(){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,i){if(this.sliders[t]=i,this.readys[t]!==o)for(var s=0;s=0;s--)this.eventListeners[t][s]===i&&this.eventListeners[t].splice(s,1)},t.prototype.dispatch=function(t,i){if(this.eventListeners[t]!==o&&this.eventListeners[t].length)for(var s=this.eventListeners[t].length-1;s>=0;s--)this.eventListeners[t][s]&&this.eventListeners[t][s].call(i,i)},t.prototype.trigger=function(t,i,e){e&&e.preventDefault();var s=i.split(","),n=t.closest(".n2-ss-slide,.n2-ss-static-slide"),h=n.ssLastEvent;t.ssResetEvents||(t.ssResetEvents=1,ut(n,"layerAnimationPlayIn",function(t){t.ssLastEvent=""}.bind(this,n)));for(var o=s.length-1,r=0;r=0&&r.element(n[h])},element:function(t){"string"==typeof t&&(t=s.querySelector(t)),r.to(wt(t)-r.focusOffsetTop)}};return t.prototype.scroll=function(e,t){if(this.isClickAllowed(e)){e.preventDefault();var s=this.findSliderByElement(e.target);s&&(r.focusOffsetTop=s.responsive.focusOffsetTop,e.currentTarget.blur()),r[t].apply(i,Array.prototype.slice.call(arguments,2))}},t.prototype.findSliderByElement=function(t){return(t=t.closest(".n2-ss-slider"))?t.ss:null},i.n2ss=new t,i.n2ss})),a.d("SmartSliderAbstract",(function(){function t(s,n){if(this.editor=null,this.elementID=s,i[s]&&i[s]instanceof t)if(i[s].__sliderElement&&!h.contains(i[s].__sliderElement));else{if(i[s].sliderElement===o)return void console.error("Slider [#"+s+"] inited multiple times");if(h.contains(i[s].sliderElement))return void console.error("Slider [#"+s+"] embedded multiple times")}this.stages=new a.Stages,a.d("#"+s,function(){return this}.bind(this)),this.isAdmin=!!n.admin,a.SmartSliderPlugins.addSlider(this),this.id=parseInt(s.replace("n2-ss-","")),i[s]=this,n.isDelayed!==o&&n.isDelayed?yt(function(){this.waitForExists(s,n)}.bind(this)):this.waitForExists(s,n)}t.prototype.kill=function(){this.killed=!0;var t=this.sliderElement.closest(".n2-ss-margin");t?Y(t):a.r("documentReady",function(){Y(this.sliderElement.closest(".n2-ss-margin"))}.bind(this));var i=this.sliderElement.closest(".n2-ss-align");i?Y(i):a.r("documentReady",function(){Y(this.sliderElement.closest(".n2-ss-align"))}.bind(this)),n2ss.makeReady(this.id,this)},t.prototype.waitForExists=function(t,i){new Promise((function(i){var n=function(){var h=s.getElementById(t)||s.getElementById(t+"_t");h?i(h):r(n,500)};n()})).then(this.onSliderExists.bind(this,t,i))};var c=[];function f(t,s){if(i.IntersectionObserver)new IntersectionObserver(function(t,i){for(var n=0;nthis.realSlides.length-1?0:t+1]);this.widgets=new a.SmartSliderWidgets(this);var s;if(new a.UniversalEnter(this.sliderElement,function(e){e.target.closest(".n2-full-screen-widget")||(u(s),!0,N(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!0),at(this.sliderElement,"universalleave",function(e){e.stopPropagation(),s=r(function(){!1,G(this.sliderElement,"n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)))}.bind(this)),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&ut(this.sliderElement,"contextmenu",(function(e){e.preventDefault()})),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){if(ut(this.sliderElement,"touchstart",function(){G(this.sliderElement,"n2-has-hover")}.bind(this),{passive:!0,once:!0}),this.initControls(),this.stages.resolve("UIReady"),!this.isAdmin){var n="click";this.hasTouch()&&(n="n2click"),this.sliderElement.querySelectorAll('[data-n2click="url"]').forEach((function(t){ut(t,n,(function(e){n2ss.openUrl(e)})),ut(t,"mousedown",(function(e){2!==e.which&&4!==e.which||(e.preventDefault(),n2ss.openUrl(e,"_blank"))})),ut(t,"keydown",(function(e){n2ss.openUrlKeyDown(e)}))}))}this.load.start(),ut(this.sliderElement,"keydown",(function(t){"Space"!==t.code&&"Enter"!==t.code||t.target.matches('[role="button"],[tabindex]')&&t.target.matches(":not(a,input,select,textarea)")&&(t.preventDefault(),t.target.click(),nt(t.target,"n2Activate"))})),ut(this.sliderElement,"mouseleave",(function(e){e.currentTarget.blur()})),i.jQuery&&i.jQuery(this.sliderElement).find("[tabindex]").off("focus")}},t.prototype.initSlides=function(){var t,i=this.sliderElement.querySelectorAll(".n2-ss-slide");for(t=0;t0&&c>0||(a<0?l="top"===f?"top":"bottom"===f?"bottom":-a<=c?"top":"bottom":c<0&&(l="top"===f?"top":"bottom"===f||-c<=a?"bottom":"top"));var d=n;if("top"===l?d=n-h+u.top:"bottom"===l&&(d=n+o+u.bottom-r),(d=Math.round(d))!==n)return this._scrollTo(d,Math.abs(n-d))}return!0},t.prototype._scrollTo=function(t,h){var o=!1;return"smooth"===T(n,"scroll-behavior")&&(_(n,"scroll-behavior",""),o=!0),i.nextendScrollFocus=!0,new Promise((function(i){gt(s.scrollingElement,t,h,i)})).then((function(){o&&_(n,"scroll-behavior","smooth"),i.nextendScrollFocus=!1}))},t.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},t.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},t.prototype.initHideArrow=function(){var t=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){t(this.currentSlide),ut(this.sliderElement,"SliderResize",function(){t(this.currentSlide)}.bind(this))}.bind(this)),ut(this.sliderElement,"SlideWillChange",(function(e){t(e.detail.targetSlide)}))},t.prototype.next=function(t,i){var s=this.currentSlide.getNext();return!(!s||!this.getUINextSlide(this.currentSlide))&&this.changeTo(s.index,!1,t,i)},t.prototype.previous=function(t,i){var s=this.getUIPreviousSlide(this.currentSlide);return!!s&&this.changeTo(s.index,!0,t,i)},t.prototype.isChangePossible=function(t){var i=!1;if("next"===t){var s=this.currentSlide.getNext();s&&(i=s.index)}else if("previous"===t){var n=this.currentSlide.getPrevious();n&&(i=n.index)}return!1!==i&&i!==this.currentSlide.index},t.prototype.nextCarousel=function(t,i){return!!this.next(t,i)||this.changeTo(this.getFirstSlide().index,!1,t,i)},t.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},t.prototype.getSlideCount=function(){for(var t=0,i=0;ithis.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},t.prototype.changeTo=function(t,i,s,n){if((t=parseInt(t))!==this.currentSlide.index){if(!this.slides[t].isVisible)return console.error("this slide is not visible on this device"),!1;this.h("SlideWillChange",{targetSlide:this.slides[t]}),this.h("SlideLoading");var h=performance.now();return Promise.all([Promise.all(this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[t]))),this.focus(s)]).then(function(){if(t!==this.currentSlide.index){if(this.mainAnimationLastChangeTime=0)},t.prototype.findSlideByElement=function(t){var i;for(i=0;i=0&&tt?this.changeTo(t,!0,s):this.changeTo(t,!1,s):this.changeTo(t,!i,s))},t.prototype.hide=function(){this.isVisible&&(N(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&N(this.load.placeholder,"n2-ss-slider-has-no-slide"),this.isVisible=!1)},t.prototype.show=function(){this.isVisible||(N(this.responsive.alignElement,"n2-ss-slider-has-no-slide"),this.load.placeholder&&G(this.load.placeholder,"n2-ss-slider-has-no-slide"),st(i,"scroll"),this.isVisible=!0)},t.prototype.startAutoplay=function(){return this.controlAutoplay!==o&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},t.prototype.pauseAutoplay=function(){return this.controlAutoplay!==o&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},t.prototype.getAnimationAxis=function(){return"horizontal"},t.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},t.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},t.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},t.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},t.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},t.prototype.getUINextSlide=function(t){return t.getNext()},t.prototype.getHorizontalTouchDimension=function(){return this.responsive.resizeContext.sliderWidth},t.prototype.getVerticalTouchDimension=function(){return this.responsive.resizeContext.sliderHeight},t})),a.d("Stages",(function(){function t(){this.stages={}}function i(t){this.n=t,this._isResolved=!1,this._promise=new Promise(function(t,i){this._resolve=t,this._reject=i}.bind(this)),this._promise.then(function(){this._isResolved=!0}.bind(this))}return t.prototype.get=function(t){return this.stages[t]===o&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,i){var s;if("string"==typeof t)s=this.get(t).getPromise();else{for(var n=[],h=0;h=0;h--){var r=n[h].split("-");if(2===r.length){var u=parseInt(r[0]),a=parseInt(r[1]);if(u<=a)for(var c=u;c<=a;c++)n.push(c)}else n[h]=parseInt(n[h])}if(n.length>0){for(h=0;h0&&(t=1)),"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):t>=0&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&t>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):t>=0&&t<=1&&this.timeline.progress(t))},t.prototype.setTouchEnd=function(t,i,s){"ended"!==this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,i,s):this._setTouchEnd(t,i,s))},t.prototype._setTouchEnd=function(t,i,s){t&&i>0?(this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype._setTouchEndWithReverse=function(t,i,s){t?i<0&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,i,s),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,i,s),this.timeline.play()):(i<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-i,s),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-i,s),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},t.prototype.fixTouchDuration=function(t,i,s){var n=t.totalDuration(),h=Math.max(n/3,Math.min(n,s/Math.abs(i)/1e3));h!==n&&t.totalDuration(h)},t.prototype.getState=function(){return this.state},t.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},t.prototype.changeTo=function(t,i,s,n){this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart.bind(this),[t,i,n]),this.timeline.eventCallback("onComplete",this.onChangeToComplete.bind(this),[t,i,n]),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(s){s.eventCallback("onReverseComplete",this.onReverseChangeToComplete.bind(this),[i,t,n])}.bind(this),this.isTouch||this.timeline.play()},t.prototype.willRevertTo=function(t,i){ht(this.slider.sliderElement,"mainAnimationWillRevertTo",{slideIndex:t,originalNextSlideIndex:i}),at(this.sliderElement,"mainAnimationComplete",this.revertTo.bind(this,t,i))},t.prototype.revertTo=function(t,i){this.slider.revertTo(t,i),nt(this.slider.slides[i].element,"mainAnimationStartInCancel")},t.prototype.willCleanSlideIndex=function(t){at(this.sliderElement,"mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},t.prototype.cleanSlideIndex=function(){},t.prototype._initAnimation=function(t,i,s){this.slider.updateInsideSlides([t,i])},t.prototype.onChangeToStart=function(t,i,s){this.state="playing";var n={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.slider.h("mainAnimationStart",n),t.h("mainAnimationStartOut",n),i.h("mainAnimationStartIn",n)},t.prototype.onChangeToComplete=function(t,i,s){var n={mainAnimation:this,previousSlideIndex:t.index,currentSlideIndex:i.index,isSystem:s};this.clearTimelines(),this.disableReverseMode(),t.h("mainAnimationCompleteOut",n),i.h("mainAnimationCompleteIn",n),this.state="ended",this.slider.updateInsideSlides([i]),s||i.focus(),this.slider.h("mainAnimationComplete",n)},t.prototype.onReverseChangeToComplete=function(i,s,n){t.prototype.onChangeToComplete.apply(this,arguments)},t.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},t.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},t})),a.d("SmartSliderControlAlias",(function(){"use strict";function t(t,s){this.C=t,this.A=t.sliderElement,this.P=t.m,this.I=D(this.P,"alias"),this.M=g({id:0,smoothScroll:0,slideSwitch:0,scroll:1},s),this.I&&(this.M.smoothScroll&&_(n,"scroll-behavior","smooth"),this.M.slideSwitch&&(this.switchOnLoad(),ut(i,"hashchange",function(){var t=this.getAnchor();t>0&&(1===this.C.responsive.parameters.focusUser?(this.C.responsive.parameters.focusUser=0,this.switchToSlide(t-1),this.C.responsive.parameters.focusUser=1):this.switchToSlide(t-1),this.replaceHash())}.bind(this))))}return t.prototype.getAnchor=function(){var t=i.location.hash.substr(1);if(t){if(t===this.I)return!0;if(this.M.slideSwitch&&0===t.indexOf(this.I)){var s=+t.substr(this.I.length+1);if(s>0)return s}}return!1},t.prototype.switchOnLoad=function(){var t=this.getAnchor();if(t>0){var s=t-1,n=i["n2-ss-"+this.C.id];n&&n.stages.resolved("StarterSlide")?n.stages.done("BeforeShow",function(){this.switchToSlide(s)}.bind(this)):i["ss"+this.C.id]=s,this.replaceHash()}},t.prototype.replaceHash=function(){var t="#"+this.I;history.replaceState?history.replaceState(null,null,t):location.hash=t},t.prototype.switchToSlide=function(t){this.C.slide(t)},t})),a.d("SmartSliderControlAutoplay",(function(){"use strict";function t(t,i){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this._listeners=[],this.wait=new a.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=g({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},i),this.clickHandled=!1,t.controls.autoplay=this,this.parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,r(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.F=!0;this.timeline=a.R.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)});var t=this.slider.sliderElement;this._listeners.push(rt(t,"SlideLoading",function(){this.wait.add("load")}.bind(this))),this._listeners.push(rt(t,"SlideLoaded",function(e){this.wait.resolve("load")}.bind(this))),this._listeners.push(rt(t,"BeforeCurrentSlideChange",function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this))),this._listeners.push(rt(t,"mainAnimationStart",function(){this._currentCount++,this.setState("mainAnimationPlaying",1),this.wait.resolveWeak()}.bind(this))),this._listeners.push(rt(t,"mainAnimationComplete",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlideIndex)),this.F=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this._listeners.push(rt(t,"autoplayPause",function(e){this.setState("paused",1)}.bind(this))),this._listeners.push(rt(t,"autoplayResume",function(e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0);var t=e.detail.progress;t!==o&&this.timeline.progress(t)}.bind(this))),this._listeners.push(rt(t,"CurrentSlideChanged",function(e){this.timeline.duration(this.getSlideDuration(e.detail.currentSlide.index)),this.F=!0,this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this))),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.h("autoplay",{progress:0}),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,i){this.state[t]!==i&&(this.state[t]=i,this.timeline!==o&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==o&&this.isPaused||(this.isPaused=!0,this.slider.h("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),(this.isPaused===o||this.isPaused)&&(this.isPaused=!1,this.slider.h("autoplayStarted")))))},t.prototype.initClick=function(t,i){(t||i)&&(this.universalClick=new a.UniversalClick(this.slider.sliderElement,function(e){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):t&&this.setState("pausedSecondary",1))}.bind(this)))},t.prototype.initHover=function(t,i){if(t||i){var s=!1;this._listeners.push(rt(this.slider.sliderElement,"touchend",(function(){s=!0,r((function(){s=!1}),300)}))),this._listeners.push(rt(this.slider.sliderElement,"mouseenter",function(e){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==t||this.setState("pausedSecondary",1)}.bind(this))),this._listeners.push(rt(this.slider.sliderElement,"mouseleave",function(e){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===t&&this.setState("pausedSecondary",1)}.bind(this)))}},t.prototype.initMedia=function(t,i){var s=this.slider.sliderElement;t?(this._listeners.push(rt(s,"mediaStarted",function(e){this.wait.add(e.detail.id)}.bind(this))),this._listeners.push(rt(s,"mediaEnded",function(e){this.wait.resolve(e.detail.id)}.bind(this)))):i&&this._listeners.push(rt(s,"mediaEnded",function(){this.setState("pausedSecondary",0)}.bind(this)))},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.h("autoplay",{progress:this.timeline.progress()})}.bind(this))},t.prototype.next=function(){if(this.F){if(this.F=!1,this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}this.autoplayToSlide>0&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),this.autoplayToSlideIndex>=0&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)}},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),ot(this._listeners),this.universalClick&&(this.universalClick.remove(),delete this.universalClick),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var i=this.slider.realSlides[this.slider.getRealIndex(t)],s=i.minimumSlideDuration;return 0===parseFloat(i.minimumSlideDuration)&&(s=this.parameters.duration),s},t})),a.d("SmartSliderControlFullscreen",(function(){"use strict";function t(i,n,h){this.slider=i,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._upscale=this.responsive.parameters.upscale,this.D=!1,this.A=this.slider.sliderElement,this.O=this.A.closest(".n2-section-smartslider"),ut(s,t.event,this.fullScreenChange.bind(this))}return t.isSupported=!(!s.exitFullscreen&&!s.webkitExitFullscreen),t.isSupported&&(t.requestFullscreen=n.requestFullscreen||n.webkitRequestFullscreen,t.exitFullscreen=s.exitFullscreen||s.webkitExitFullscreen,t.event=n.requestFullscreen?"fullscreenchange":n.webkitRequestFullscreen?"webkitfullscreenchange":null),t.prototype.switchState=function(){this.D=!this.D,this.D?this._fullScreen():this._normalScreen()},t.prototype.requestFullscreen=function(){return!this.D&&(this.D=!0,this._fullScreen(),!0)},t.prototype.exitFullscreen=function(){return!!this.D&&(this.D=!1,this._normalScreen(),!0)},t.prototype._fullScreen=function(){this.responsive.D=!0,this.responsive.parameters.type="fullpage",this.A.dataset.responsive=this.responsive.parameters.type,this.responsive.parameters.upscale=!0,this._marginLeft=this.responsive.containerElement.style.marginLeft,this._marginRight=this.responsive.containerElement.style.marginRight,V(this.responsive.containerElement,{marginLeft:0,marginRight:0}),V(this.O,{width:"100%",height:"100%","background-color":i.getComputedStyle(h).backgroundColor}),t.requestFullscreen.call(this.O)},t.prototype._normalScreen=function(){t.exitFullscreen.call(s)},t.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.h("n2FullScreen"),N(n,"n2-in-fullscreen"),N(this.slider.sliderElement,"n2-ss-slider--fullscreen"),this.D=!0,"auto"===this._type&&_(this.slider.responsive.alignElement,"max-width","none"),st(i,"resize")):(this.responsive.D=!1,this.responsive.parameters.type=this._type,this.A.dataset.responsive=this._type,this.responsive.parameters.upscale=this._upscale,V(this.responsive.containerElement,{marginLeft:this._marginLeft,marginRight:this._marginRight}),V(this.O,{width:"",height:"","background-color":""}),G(this.slider.sliderElement,"n2-ss-slider--fullscreen"),G(n,"n2-in-fullscreen"),"auto"===this._type&&E(this.slider.responsive.alignElement,"max-width"),st(i,"resize"),this.D=!1,this.slider.h("n2ExitFullScreen"))},t.prototype.isDocumentInFullScreenMode=function(){return s.fullscreenElement||s.webkitIsFullScreen},t})),a.d("SmartSliderControlKeyboard",(function(){"use strict";var t;function n(){this.controls=[],s.addEventListener("keydown",this.onKeyDown.bind(this)),s.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(i,s,h){this.slider=i,this.parameters=g({},h),this.parseEvent="vertical"===s?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,t||(t=new n),t.addControl(this),ut(this.slider.sliderElement,"SliderKeyDown",function(e){this.onKeyDown(e.detail.e)}.bind(this)),i.controls.keyboard=this}return n.prototype.onMouseMove=function(e){this.mouseEvent=e},n.prototype.addControl=function(t){this.controls.push(t)},n.prototype.onKeyDown=function(e){if(e.target.tagName.match(/BODY|DIV|IMG/)&&!e.target.isContentEditable){var t;if(this.mouseEvent&&(t=this.findSlider(s.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void ht(t,"SliderKeyDown",{e:e});if(s.activeElement!==h&&(t=this.findSlider(s.activeElement)))return void ht(t,"SliderKeyDown",{e:e});for(var i=0;i=0&&t.top+s<=i.innerHeight},o.prototype.onKeyDown=function(e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(e){switch(e.code){case"ArrowRight":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case"ArrowLeft":return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(e){switch(e.code){case"ArrowDown":return(!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.next(),!0);case"ArrowUp":return(!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction)&&(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o})),a.d("SmartSliderControlMouseWheel",(function(){"use strict";function t(t,i){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,this.L=2===i?"deltaX":"deltaY",s.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return t.prototype.hasScrollableParentVertical=function(t,s){for(;s&&s!==this.slider.sliderElement;){if(s.scrollHeight>s.clientHeight){var n=i.getComputedStyle(s).overflowY;if("scroll"===n||"auto"===n)if(t){if(s.scrollTop>0)return!0}else if(s.scrollTop+s.clientHeightt.offsetWidth)return!0;t=t.parentNode}return!1},t.prototype.onGlobalMouseWheel=function(e){e.target.closest(".n2-ss-slider")&&0!==e[this.L]&&(this.onCurveEvent(e),this.preventScroll.local||this.preventScroll.curve||Math.abs(e[this.L])0&&(this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),e.preventDefault(),this.startCurveWatcher(e),this.local(),this.global()))},t.prototype.startCurveWatcher=function(e){!1!==this.preventScroll.curve&&u(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDelta=e[this.L],this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=r(this.releaseCurveLock.bind(this),1500)},t.prototype.onCurveEvent=function(e){if(this.preventScroll.curveGlobal){this.dynamicDelta||this.lastDelta===e[this.L]||(this.lastDelta=e[this.L],this.dynamicDelta=!0);var t=Math.abs(e[this.L]);this.preventScroll.curve&&this.maxDelta/2>t&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,t),this.preventScroll.curveGlobalTimeout&&u(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=r(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0}.bind(this),500)}},t.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,u(this.preventScroll.curveTimeout)},t.prototype.local=function(){!1!==this.preventScroll.local&&u(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=r(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},t.prototype.global=function(){!1!==this.preventScroll.global&&u(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=r(function(){this.preventScroll.global=!1}.bind(this),1e3)},t})),a.d("SmartSliderControlTouch",(function(){"use strict";function t(t){this.slider=t,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.querySelector(".n2_ss__touch_element"),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),ut(t.sliderElement,"visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return t.prototype.onStarterSlide=function(){this.initTouch(),ut(this.slider.sliderElement,"sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},t.prototype.onVisibleSlidesChanged=function(){this.slider.visibleSlides.length>1?V(this.swipeElement,{cursor:"grab",userSelect:"none"}):j(this.swipeElement,["cursor","userSelect"])},t.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=a.EventBurrito(this.swipeElement,{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},t.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:g({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:vt(),animationStartDirection:"unknown",hadDirection:!1,startDistance:0},this.logDistance(0,0)},t.prototype._move=function(t,i,s,n){if(!n||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(s);var h=this.get(s);if((this.currentInteraction.hadDirection||Math.abs(h)>10||Math.abs(s.y)>10)&&(this.logDistance(h,s.y),this.currentInteraction.percent<1&&this.setTouchProgress(h,s.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},t.prototype._end=function(t,i,s,n){if("switch"===this.currentInteraction.action){var h=n?0:this.measureRealDirection();if(this.interactiveDrag)this._animation.timeline.progress()<1&&this._animation.setTouchEnd(h,this.currentInteraction.progress,s.time),this._animation.setTouch(!1);else h&&this.callAction(this.currentInteraction.animationStartDirection);G(this.swipeElement,"n2-grabbing")}this.onEnd(),delete this.currentInteraction,Math.abs(s.x)<10&&Math.abs(s.y)<10?this.onTap(t):a._preventClick()},t.prototype.onEnd=function(){if("scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type){var t=this.currentInteraction.distanceY[0],i=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],n=(t.d-i.d)/(i.t-t.t)*10,h=Date.now(),o=function(){requestAnimationFrame(function(){var t,i;if(!this.kineticScrollCancelled&&n&&(t=Date.now()-h,(i=n*Math.exp(-t/325))>1||i<-1))return pt(vt()+i),void o();this.onEndKineticScroll()}.bind(this))}.bind(this);this.kineticScrollCancelled=!1,o(),s.addEventListener("pointerdown",this.cancelKineticScroll)}},t.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,s.removeEventListener("pointerdown",this.cancelKineticScroll),_(n,"scroll-behavior","")},t.prototype.setTouchProgress=function(t,i){this.recognizeSwitchInteraction(),0===this.currentInteraction.startDistance&&(this.currentInteraction.startDistance=t<0?t+1:t-1);var s,n=this.getPercent(t-this.currentInteraction.startDistance);if(this.currentInteraction.percent=n,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":s=-1*n;break;case"down":s=n;break;case"left":s=-1*n;break;case"right":s=n}this.currentInteraction.progress=s,this._animation.setTouchProgress(s)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(i)},t.prototype.startScrollInteraction=function(t){"vertical"===this.axis&&(this.slider.controlFullscreen&&this.slider.controlFullscreen.D||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(_(n,"scroll-behavior","auto"),pt(Math.max(0,this.currentInteraction.scrollTop-t)))))},t.prototype.recognizeSwitchInteraction=function(){if("unknown"===this.currentInteraction.action&&this.slider.visibleSlides.length>1)if("ended"===this._animation.state){var t=this.currentInteraction.direction;if("unknown"!==t&&this.currentInteraction.state[t]){if(this.currentInteraction.animationStartDirection=t,this.interactiveDrag){this._animation.setTouch(this.axis);this.callAction(t,!1)}this.currentInteraction.action="switch",N(this.swipeElement,"n2-grabbing")}}else"playing"===this._animation.state&&(this.currentInteraction.action="hold")},t.prototype.logDistance=function(t,i){this.currentInteraction.distance.length>3&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:i,t:Date.now()})},t.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],i=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return i.d>=0&&t.d>i.d||i.d<0&&t.d=0;this.slider.parameters.carousel&&(i=!0,s=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:i,left:s},!0):this.setState({right:s,left:i},!0)},t.prototype.syncTouchAction=function(){var t=this.state.left||this.state.right?"pan-y":"";_(this.swipeElement,"touch-action",t),i.PointerEventsPolyfill&&x(this.swipeElement,"touch-action",t)},t})),a.d("SmartSliderControlTouchVertical","SmartSliderControlTouch",(function(){"use strict";function t(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",a.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return t.prototype=Object.create(a.SmartSliderControlTouch.prototype),t.prototype.constructor=t,t.prototype.callAction=function(t,i){switch(t){case"up":return this.slider.next.call(this.slider,i);case"down":return this.slider.previous.call(this.slider,i)}return!1},t.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y) .n2-ss-layer-mask");switch(i&&(this.wraps.mask=i),D(this.layer,"pm")){case"absolute":this.placement=new a.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new a.FrontendPlacementNormal(this);break;case"content":this.placement=new a.FrontendPlacementContent(this);break;default:this.placement=new a.FrontendPlacementDefault(this)}a.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,i){this.state[t]=i;for(var s=0;s0)&&this.focusableElements.push(i),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=+D(i,"slideDuration"),this.minimumSlideDuration||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&i.classList.contains("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.layer=i.querySelector('.n2-ss-layer[data-sstype="slide"]'),ut(t.sliderElement,"SliderDeviceOrientation",function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.h("Visible")}.bind(this))):(this.component=new a.FrontendComponentSectionSlide(this,t,i.querySelector('.n2-ss-layer[data-sstype="slide"]')),this.layer=this.component.layer)}t.prototype=Object.create(a.FrontendSliderSlideAbstract.prototype),t.prototype.constructor=t,t.prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)};var i=!1;try{f("div").focus(Object.defineProperty({},"preventScroll",{get:function(){i=!0}}))}catch(t){}return t.prototype.focus=function(){i&&this._slideFocus.focus({preventScroll:!0})},t.prototype.allowFocus=function(){for(var t=0;t0},t.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},t.prototype.hasLink=function(){return!!D(this.element,"haslink")},t})),a.d("FrontendSliderSlideAbstract",["FrontendSlideControls"],(function(){function t(t,i,s){a.FrontendSlideControls.prototype.constructor.call(this,t,i),this.slides=this.slides||[],this.group=this,this.originalIndex=s,this.index=s,this.localIndex=s,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var i in a.FrontendSlideControls.prototype)t.prototype[i]=a.FrontendSlideControls.prototype[i];return t.prototype.setIndex=function(t){for(var i=0;i .n2-ss-layer"))}return t.prototype=Object.create(a.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),a.d("FrontendComponentContent",["FrontendComponentCommon"],(function(){function t(t,i,s){this.content=s.querySelector(".n2-ss-section-main-content"),a.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.content.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(a.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.content]},t})),a.d("FrontendComponentLayer",["FrontendComponentCommon"],(function(){function t(t,i,s){a.FrontendComponentCommon.prototype.constructor.call(this,t,i,s);var n=s;this.wraps.mask&&(n=this.wraps.mask),this.item=n.querySelectorAll(":scope > *")}return t.prototype=Object.create(a.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return this.item},t})),a.d("FrontendComponentRow",["FrontendComponentCommon"],(function(){function t(t,i,s){this.row=s.querySelector(".n2-ss-layer-row"),this.rowInner=s.querySelector(".n2-ss-layer-row-inner"),a.FrontendComponentCommon.prototype.constructor.call(this,t,i,s,this.rowInner.querySelectorAll(":scope > .n2-ss-layer"))}return t.prototype=Object.create(a.FrontendComponentCommon.prototype),t.prototype.constructor=t,t.prototype.getContents=function(){return[this.row]},t})),a.d("FrontendComponentSectionSlide",["FrontendComponent"],(function(){function t(t,i,s){this.realSlide=t,this.slider=i,this.element=t.element,this.layer=s,this.isStatic=t.isStatic(),a.FrontendComponent.prototype.constructor.call(this,this,this,s,s.querySelectorAll(":scope > .n2-ss-layer")),ut(i.sliderElement,"SliderDeviceOrientation",function(e){this.onDeviceChange(e.detail.device.toLowerCase())}.bind(this)),ut(i.sliderElement,"SliderResize",function(e){this.onResize(e.detail.ratios,e.detail.responsive.resizeContext)}.bind(this)),this.start()}return t.prototype=Object.create(a.FrontendComponent.prototype),t.prototype.constructor=t,t.prototype.onDeviceChange=function(t){a.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var i=0;i0&&t<100)return}this.K=this.U,this.Z=this.G;var t=this.identifyDeviceID();if(this.parameters.hideOn[f._DeviceMode[t]])return N(this.m,"n2-section-smartslider--hidden"),!1;if(G(this.m,"n2-section-smartslider--hidden"),!this.isVisible)return!1;var i=!1,s=this.device;if(this.deviceID!==t&&(this.setDeviceID(t),s&&G(this.sliderElement,"n2-ss-"+s),z(this.sliderElement,"deviceMode",this.device),N(this.sliderElement,"n2-ss-"+this.device),this.slider.h("SliderDevice",{lastDevice:s,device:this.device,group:f._DeviceGroup[this.device]}),i=!0,this.slider.stages.resolve("Device")),i&&(this.slider.visibleRealSlides=[],this.slider.publicDispatchEvent("SliderDeviceOrientation",{slider:this.slider,lastDevice:s,device:this.device,group:f._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),!this.slider.visibleRealSlides.length)return this.parameters.hideOn[f._DeviceMode[t]]=!0,N(this.m,"n2-section-smartslider--hidden"),!1;if(this.slider.isVisible||this.visibleRealSlidesChanged){for(var n=0;n .n2-ss-layer[data-pm="absolute"][data-adaptivefont="0"]'),"font-size","calc("+16*this.ratios.slideW+"px * var(--ssfont-scale, 1))");for(var t=0;t0){var i=t||this.slider.currentRealSlide;i.isVisible||(i=i.getNext())||(i=this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(i)}},f.prototype.resetActiveRealSlide=function(t){var i,s;t&&t!==this.slider.currentRealSlide?(this.slider.h("BeforeCurrentSlideChange",t),(i=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(i),this.slider.setCurrentRealSlide(t),s=this.slider.currentSlide,this.targetCurrentSlide=s,this.slider.forceSetActiveSlide(s),this.slider.h("SlideForceChange",{oldSlide:i,currentSlide:s})):s=this.slider.currentSlide,this.slider.updateInsideSlides([s])},f.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==o&&(this.slider.h("SlideWillChange",{targetSlide:this.targetCurrentSlide}),this.slider.h("CurrentSlideChanged",{currentSlide:this.targetCurrentSlide}),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},f.prototype.triggerVisibleSlidesChanged=function(){this.slider.h("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},f.prototype.getNormalizedModeString=function(){return f._DeviceMode[this.deviceID]},f.prototype.triggerResize=function(){this.slider.publicDispatchEvent("SliderResize",{ratios:this.ratios,responsive:this}),this.slider.stages.resolve("Resized")},f.prototype.getVerticalOffsetHeight=function(){return this.D?0:this.slider.widgets.getVerticalsHeight()},f.prototype.addHorizontalSpacingControl=function(t,i){this.horizontalSpacingControls[t].push(i),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},f.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var i in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var s=this.horizontalSpacingControls[i],n=s.length-1;n>=0;n--){var h=s[n];h.isVisible()&&(h.refreshSliderSize(t),this.horizontalSpacing[i]+=h.getSize())}return V(this.containerElementPadding,{paddingLeft:this.horizontalSpacing.left+"px",paddingRight:this.horizontalSpacing.right+"px"}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},f.prototype.addFilter=function(t,i){this.filters[t].push(i)},f.prototype.removeFilter=function(t,i){this.filters[t].push(i)},f.prototype.applyFilter=function(t,i){for(var s=0;s-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in f("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}n2const.isLighthouse||a.r("windowLoad",this.whenLoaded.bind(this))}var i;return t.prototype.whenLoaded=function(){1===parseInt(this.parameters.autoplay)||!this.hasImage||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){var t=function(e){ot(i),e.preventDefault(),e.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this),i=[rt(this.playerElement,"click",t),rt(this.playerElement,"n2click",t)]}.bind(this))},t.prototype.ready=function(t){i||(i=new Promise((function(t){var i=f("script");i.onload=t,i.src="https://player.vimeo.com/api/player.js",s.head.appendChild(i)}))),i.then(t)},t.prototype.initVimeoPlayer=function(){var t=f("iframe");t.className="intrinsic-ignore",t.allow="fullscreen; autoplay; encrypted-media",t.id=this.playerId+"-frame",t.src="https://player.vimeo.com/video/"+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+"&dnt="+this.parameters["privacy-enhanced"]+(""!==this.parameters.privateid?"&h="+this.parameters.privateid:""),t.webkitAllowFullScreen=!0,t.allowFullScreen=!0,V(t,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),this.playerElement.prepend(t),this.player=new Vimeo.Player(t,{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},t.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),this.isStatic=this.slide.isStatic();var i=this.playerElement.closest(".n2-ss-layer");this.layer=i.layer,new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),ut(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),ut(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.cover&&(n2const.isMobile&&at(this.cover,"click",this.safePlay.bind(this)),at(i,"n2play",function(){a.R.to(a.MW.i(this.cover),.3,{opacity:0,onComplete:function(){Y(this.cover)}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||ht(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),nt(i,"n2play")}.bind(this)),this.player.on("pause",function(){nt(i,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||ht(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),nt(i,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((s.fullscreenElement||s.webkitFullscreenElement)&&(s.exitFullscreen||s.webkitExitFullscreen).call(s),this.slider.next(!0))}.bind(this)),this.isStatic||(ut(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),ut(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this))),""!==this.parameters["scroll-pause"]?a.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this._resolve()},t.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?(1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",!0,!0)):(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0))},t.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(ut(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause(),this.state.slideVisible&&this.state.visible&&this.state.slide&&this.layer.isVisible?P(this.player.element,"tabindex"):x(this.player.element,"tabindex","-1"))},t.prototype.play=function(){ht(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t-1)this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in f("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,n.playsinline=1)}catch(t){}}for(var h in n2const.isIOS&&this.parameters.controls&&(n.use_native_controls=1),1==this.parameters.center&&(n.controls=0),1!=this.parameters.controls&&(n.autohide=1,n.controls=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(n.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(h)&&(n[h]=this.parameters.query[h]);var o={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:n,events:{onReady:this.onReady.bind(this),onStateChange:function(i){switch(i.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&ht(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),nt(t,"n2play");break;case YT.PlayerState.PAUSED:nt(t,"n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||ht(this.slider.sliderElement,"mediaEnded",{id:this.playerId}),nt(t,"n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((s.fullscreenElement||s.webkitFullscreenElement)&&(s.exitFullscreen||s.webkitExitFullscreen).call(s),this.slider.next(!0)))}}.bind(this)}};(this.parameters["privacy-enhanced"]||i.jQuery&&i.jQuery.fn.revolution)&&(o.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",o),1==this.parameters.center&&(_(this.playerElement.parentNode,"overflow","hidden"),this.onResize(),ut(this.slider.sliderElement,"SliderResize",this.onResize.bind(this)))},t.prototype.onReady=function(){this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},t.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):-1!==t&&this.player.mute(),new ResizeObserver(function(t){var i=t[0].contentRect;if(i.width&&i.height)this.state.visible||this.setState("visible",!0,!0);else if(this.state.visible){var s=this.state.play;this.setState("visible",!1,!0),s&&this.setState("continuePlay",!0)}}.bind(this)).observe(this.layer.layer),this.slide.isVisible&&this.setState("slideVisible",!0,!0),ut(this.slide.element,"Hidden",function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this)),ut(this.slide.element,"Visible",function(){this.setState("slideVisible",!0,!0)}.bind(this)),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(ut(this.slider.sliderElement,"CurrentSlideChanged",function(e){this.onCurrentSlideChange(e.detail.currentSlide)}.bind(this)),ut(this.slider.sliderElement,"mainAnimationStart",function(e){this.onCurrentSlideChange(this.slider.slides[e.detail.currentSlideIndex])}.bind(this)),parseInt(this.parameters.reset)&&ut(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this._resolve(),""!==this.parameters["scroll-pause"]?a.ScrollTracker.add(this.playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},t.prototype.onCurrentSlideChange=function(t){var i=this.slide.isActiveWhen(t);i&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",i,!0)},t.prototype.onResize=function(){var t=this.playerElement.parentNode.getBoundingClientRect(),i=t.width,s=t.height+100,n=16/9,h={width:i+"px",height:s+"px","margin-top":0};h[n2const.rtl["margin-left"]]=0,i/s>n?(h.height=i*n+"px",h["margin-top"]=(s-i*n)/2+"px"):(h.width=s*n+"px",h[n2const.rtl["margin-left"]]=(i-s*n)/2+"px"),V(this.playerElement,h)},t.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(ut(this.slider.sliderElement,"mainAnimationComplete",function(e){this.slide.isActiveWhen(this.slider.slides[e.detail.currentSlideIndex])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},t.prototype.setState=function(t,i,s){s=s||!1,this.state[t]=i,s&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},t.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===o&&r(this.fadeOutCover.bind(this),200),ht(this.slider.sliderElement,"mediaStarted",{id:this.playerId}),this.player.playVideo())},t.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},t.prototype.stop=function(){this.player.stopVideo()},t.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},t.prototype.setVolume=function(t){this.player.setVolume(100*t)},t})),a.d("smartslider-frontend")})(window);